package com.ph.shopping.facade.product.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import com.ph.shopping.common.core.base.BaseEntity;

@Table(name="ph_product_classify")
public class PhProductClassify extends BaseEntity  implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = 3019628828523605144L;


    /** 商品分类名称 */
	@Column(name="classifyName")
	@NotBlank(message="[商品分类名称]不可为空")
   	@Length(max=33,message="[商品分类名称]最大长度为33个字符")
    private String classifyName;

    /** 分类级别 1 一级分类 2 二级分类 3 三级分类 */
	@Column(name="classifyLevel")
    private Integer classifyLevel;

    /** 父id */
	@Column(name="parentId")
    private Long parentId;

    /** 创建人 */
	@Column(name="createUser")
    private Long createUser;

    /** 是否启用 1 未启用，2 已经启用 */
	@Column(name="status")
    private Integer status;

    /** 是否删除 1 未删除，2 已删除 */
	@Column(name="deleteFlag")
    private Integer deleteFlag;
	
	/** 描述 */
	@Column(name="description")
	private String description;
	
	/** 排序 */
	@Column(name="sort")
	private Integer sort;
	
    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName == null ? null : classifyName.trim();
    }

    public Integer getClassifyLevel() {
        return classifyLevel;
    }

    public void setClassifyLevel(Integer classifyLevel) {
        this.classifyLevel = classifyLevel;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
    
}